﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;


namespace QL_LichCT.Entities
{
    class TaiKhoan
    {
        private string _userID;

        public string userID
        {
            get { return _userID; }
            set { _userID = value; }
        }

        private string _pass;

        public string pass
        {
            get { return _pass; }
            set { _pass = value; }
        }

        private string _maNhom;

        public string maNhom
        {
            get { return _maNhom; }
            set { _maNhom = value; }
        }

        public TaiKhoan()
        {
        }

        public TaiKhoan(string uid, string pass)
        {
            this._userID = uid;
            this._pass = pass;
        }

        public TaiKhoan(string quyen)
        {
            this._maNhom = quyen;
        }

        public TaiKhoan(DataRow row)
        {
            this._userID = row["userID"].ToString();
            this._pass = row["pass"].ToString();
            this._maNhom = row["maNhom"].ToString();
        }
    }
}
